home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
009a
/
autofc20.zip
/
LEDIT.TXT
< prev
next >
Wrap
Text File
|
1991-11-01
|
638b
|
21 lines
{The following is an example of the usage of ledit.tpu:}
{This is a Turbo Pascal example}
Program tryitonce;
uses dos,ledit;
var
fx :string;
{Start of main program}
begin
fx := 'This is a string that is longer than forty characters.';
write('Line to edit: '); {the string fx will appear just after ': '}
fx := edit(fx,40); {edit the string fx with a limit of 40 chars}
{fx is now edited, and no more than 40 characters long}
writeln; {ledit does not assume anything about what you will do}
{with the edited line }
writeln('Edited line: ',fx);
end.